import http from '@/common/http';

// 发送短信
export const sendMsg = (telephone:string) => {
    return http.request({
        url:`/common/api/sendMsg/${telephone}`,
        method:'GET'
    })
}

// 短信验证码登录
export const loginByMsg = (data:object) => {
    return http.request({
        url:'/common/api/loginByMsg',
        method:'POST',
        data
    })
}

// 登录通过账号密码
export const login = (data:object) => {
    return http.request({
        url:'/common/api/login',
        method:'POST',
        data
    })
}

// 忘记密码
export const forgetPass = (data:object) => {
    return http.request({
        url:'/common/api/forgetPass',
        method:'post',
        data
    })
}